ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  Exp( ),  Log( )

Exp(Number)

The Exp function raises e to the power of a number.

Code:
<% =Exp(3.269) %>

Output:
26.2850411552082

You can also use a negative number.

Code:
<% =Exp(-3.269) %>

Output:
0.038044452511799


There is a companion function for the reverse operation.


Log(Number)

The Log function returns the natural logarithm of a number.

You can not use a negative number.

Code:
<% =Log(26.2850411552082) %>

Output:
3.269